package com.itheima.health.service;

import com.itheima.health.entity.PageResult;
import com.itheima.health.entity.QueryPageBean;
import com.itheima.health.pojo.CheckItem;
import com.itheima.health.pojo.Menu;

import java.util.List;
/**
 * @Author xuxu
 * @Date 2020/4/15
 * @Version v1.0
 * @Description 菜单服务层接口
 */
public interface MenuService {
    //查询菜单
    List<Menu> findAll();

    //删除
    void deleteById(Integer id);

    //分页查询
    PageResult pageQuery(QueryPageBean queryPageBean);

    //通过id查询
    Menu findById(Integer id);

    //编辑菜单
    void edit(Menu menu);

    //新增菜单
    void add(Menu menu);
}
